home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MIDICraft's MIDINET CD-ROM
/
MIDICraft's MIDINET CD-ROM.iso
/
DOSUTILS
/
MIDIFMT.DOC
< prev
next >
Wrap
Text File
|
1997-03-09
|
4KB
|
129 lines
******************************
MIDIFMT v1.1
midi track information
by Guenter Nagler
1995
(gnagler@ihm.tu-graz.ac.at)
******************************
[1] BACKGROUND
When programming other midi utilities (e.g. MIDI0TO1) I needed
special formatted midi files to test the utilities.
To distinguish the different format 0,1,2 midi files I wrote this
simply program.
The different format versions of standard midi currently are:
0: single multichanneltrack
1: several tracks with seperated channels to play all at once
2: several multichanneltracks to play one by one
[2] FILES DESCRIPTION
MIDIFMT.EXE.........
MIDIFMT.DOC.........this file, showing usage of MIDIFMT.EXE
MIDIIO.HPP..........header file for a c++ midi parser
MIDIIO.CPP..........source code for a c++ midi parser
MIDIFMT.CPP.........c++ source code for midi to text
MIDIFMT.MAK.........make file for project
MIDIFMT.CFG.........compiler options for make
MIDIFMT.PRJ.........project for borland c++ compilers
only MIDIFMT.EXE is required to run program
[3] COPYRIGHT
MIDIFMT (c) 1995 was created by Guenter Nagler.
MIDIFMT is free and may be used as you wish with this one exception:
You may NOT charge any fee or derive any profit for distribution
of MIDIFMT. Thus, you may NOT sell or bundle MIDIFMT with any
product in a retail environment (shareware disk distribution, CD-ROM,
etc.) without permission of the author.
You may give MIDIFMT to your friends, upload it to a BBS, or ftp it to
another internet site, as long as you don't charge anything for it.
[4] DISCLAIMER
Use MIDIFMT at your own risk. Anything you do with MIDIFMT is your
responsibility, and not the author's. Any damage caused to any person,
computer, software, hardware, company, or business by running MIDIFMT
is your responsibility, and the author will not be liable.
If you don't understand these terms, or are not sure of something, or
are afraid something bad might come of using MIDIFMT, don't use it!
You are here forewarned.
[5] INSTALLATION
[MSDOS]
Simply copy MIDIFMT.EXE in a directory that is in your path.
When you start the program without arguments
C:\> MIDIFMT
you should get the usage text (see next section)
[UNIX]
compile sources with your C++ compiler (e.g. GNU Compiler g++):
g++ -o midifmt midifmt.cpp midiio.cpp
and run program
$ midifmt
[6] USAGE
usage: MIDIFMT *.mid ...
The text output is normally written to screen but can be relinked
to a file (> filename.txt) or a printer (> prn). See your MS-DOS/UNIX
manual for usage of > and >> operators.
You can use the filename wildcards that your system supports:
DOS: * endings are free e.g. F*.MID matches all midifiles that
begin with F
? match any character but . F???.MID matches all midifiles that
begin with F and have 4 characters
UNIX: * match 0 or more characters
? match exactly one character
[...] match character that is in a given set
etc. see your manual of your work shell (e.g. man sh) for details
[7] A sample of resulting text output
command> midifmt *.mid
sample.mid: version 0, 1 track
original.mid: version 1, 13 tracks
shows a list of matching filenames, the version number (0-2) and the
number of tracks.
command> midifmt notavail.mid
notavail.mid not found
The file notavail.mid does not exist or there is no permission to read the
file.
command> midifmt file4.mid file1*.mid
file4.mid: version 1, 1 track
file1.mid: version 1, 3 tracks
file17.mid: version 0, 1 track
You can use more than one arguments and mix filenames and filename wildcards.
Here you see that file1*.mid matched file1.mid and file17.mid.
[8] SUGGESTIONS / COMMENTS / BUG REPORTS / QUESTIONS
WWW: http://hgiicm.tu-graz.ac.at/Cpub
contains all my dos/unix midi programs
EMAIL: gnagler@ihm.tu-graz.ac.at
[9] CHANGES
v1.0 to v1.1:
* long filename support for DOS 7.0/Windows95